package com.feng.financial.common.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.concurrent.TimeUnit;

/**
 * @author Administrator
 */
@ConfigurationProperties(prefix = "financial.common")
public class CommonProperties {

    /**
     * 缓存过期时间
     */
    private long expireTime = 5;

    /**
     * 缓存过期单位
     */
    private TimeUnit expireTimeUnit = TimeUnit.SECONDS;

    /**
     * swagger扫描包
     */
    private String swaggerBasePackage;

    public long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(long expireTime) {
        this.expireTime = expireTime;
    }

    public TimeUnit getExpireTimeUnit() {
        return expireTimeUnit;
    }

    public void setExpireTimeUnit(TimeUnit expireTimeUnit) {
        this.expireTimeUnit = expireTimeUnit;
    }

    public String getSwaggerBasePackage() {
        return swaggerBasePackage;
    }

    public void setSwaggerBasePackage(String swaggerBasePackage) {
        this.swaggerBasePackage = swaggerBasePackage;
    }
}
